Package-level declarations

Types

Link copied to clipboard
interface AngularValue

AngularValue is a sealed type hierarchy representing angular position around the unit circle.

Link copied to clipboard
typealias ColorPaletteGenerator = (count: Int) -> List<Color>

ColorPaletteGenerator will create count colors.

Link copied to clipboard
value class Degrees(val value: Double) : AngularValue

An AngularValue in units of Degrees.

Link copied to clipboard
annotation class ExperimentalKoalaPlotApi
Link copied to clipboard

Scope for the HoverableElementArea providing the hoverableElement Modifier to enable hovering element functionality and to specify the Composable to be displayed on hover.

Link copied to clipboard
value class Radians(val value: Double) : AngularValue

An AngularValue in units of Radians.

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun generateHueColorPalette(count: Int, saturation: Float = 0.5f, lightness: Float = 0.5f): List<Color>

Will generate a color palette that varies the hue in even increments to obtain count colors. It uses the HSL model with the ability to separately specify the saturation and lightness of the palette colors.

Link copied to clipboard

HoverableElementArea implements a component whose children may optionally provide a hover element to be displayed at the position of the mouse cursor when hovered over child component. A displayed hovered element will be confined to the bounds of the parent HoverableElementArea but may display over multiple children.

Link copied to clipboard
fun ResponsiveText(text: String, modifier: Modifier = Modifier, style: TextStyle = LocalTextStyle.current, maxLines: Int = Int.MAX_VALUE, ellipsis: Boolean = false)

A Text composable that will auto-scale the font size up and down to fit in the containing element.

Link copied to clipboard

Modifier to rotate the target Composable vertically.

Link copied to clipboard

Returns an AngularValue as Degrees.

Converts from Radians to Degrees.

Converts a Double to the Degrees type.

Converts a Float to the Degrees type.

Link copied to clipboard

Returns an AngularValue as Radians.

Converts from Degrees to Radians.

Converts a Double to the Radians type.

Converts a Float to the Radians type.

Link copied to clipboard
fun Double.toString(precision: Int): String

Converts the number to a string with precision number of digits after the decimal (rounded) (e.g. 35.72 with precision = 1 will be 35.7, 35.78 with precision = 2 will be 35.80)

fun Float.toString(precision: Int): String

Converts the float receiver as a string with precision number of digits after the decimal (rounded) (e.g. 35.72 with precision = 1 will be 35.7, 35.78 with precision = 2 will be 35.80)